package com.sky.service;

import com.sky.domain.WmsPurchase;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.utils.PageUtils;
import com.sky.vo.param.WmsPurchaseCompleteVO;
import com.sky.vo.param.WmsPurchaseMergeVO;
import com.sky.vo.param.WmsPurchaseVO;

import java.util.List;

/**
* @author Administrator
* @description 针对表【wms_purchase(采购信息)】的数据库操作Service
* @createDate 2024-06-30 16:47:16
*/
public interface WmsPurchaseService extends IService<WmsPurchase> {

    /**
     * 分页查询
     * @param vo
     * @return
     */
    PageUtils pageQuery(WmsPurchaseVO vo);

    /**
     * 查询未领取的采购单
     * @return
     */
    List<WmsPurchase> listUnReceivePurchase();

    /**
     * 合并采购单
     * @param vo
     * @return
     */
    boolean merge(WmsPurchaseMergeVO vo);

    /**
     * 领取采购单
     * @param ids
     * @return
     */
    boolean received(Long[] ids);

    /**
     * 完成采购单
     * @param completeVOS
     * @return
     */
    boolean complete(WmsPurchaseCompleteVO vo);
}
